bootz/booti: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set
authorCédric Schieli <[email protected]>
Mon, 23 Jan 2017 15:51:45 +0000 (16:51 +0100)
committerTom Rini <[email protected]>
Tue, 24 Jan 2017 15:35:55 +0000 (10:35 -0500)
commit4943dc2f1977cf89297b87f93f96ad4d7f09d24d
tree5b7dd85d13c861006d5649354f456bb5d64a5782
parent9b6ef528d0dd83ce4b09adb559e5336b107d5654
bootz/booti: relocate ramdisk if CONFIG_SYS_BOOT_RAMDISK_HIGH set

In commit c2e7e72, the ramdisk relocation code was moved from
image_setup_linux to do_bootm, leaving the bootz and booti cases broken.

This patch fixes both by adding the BOOTM_STATE_RAMDISK state in their
call to do_bootm_states if CONFIG_SYS_BOOT_RAMDISK_HIGH is set.

Signed-off-by: Cédric Schieli <[email protected]>
Reviewed-by: Rick Altherr <[email protected]>
Tested-by: Masahiro Yamada <[email protected]>
cmd/booti.c
cmd/bootz.c